/**
 * Copyright (c) 2016 coderyuan.com. All Rights Reserved.
 *
 * EShop
 *
 * PageModel.java created on 下午6:12
 *
 * @author yuanguozheng
 * @version 1.0.0
 * @since 16/3/2
 */
package com.coderyuan.web.api.kit.models;

import com.google.gson.annotations.SerializedName;

/**
 * 分页器Model
 *
 * @author yuanguozheng
 */
public class PageModel {

    /**
     * 1.每页显示数量(mEveryPage)
     */
    @SerializedName("everyPage")
    private int mEveryPage;

    /**
     * 4.当前页(mCurrentPage)
     */
    @SerializedName("currentPage")
    private int mCurrentPage;

    /**
     * 7.是否有下一页(mHasNextPage)
     */
    @SerializedName("hasNextPage")
    private boolean mHasNextPage;

    @SerializedName("beginIndex")
    private int mBeginIndex;

    public PageModel(int everyPage, int currentPage, boolean hasNextPage, int beginIndex) {
        mEveryPage = everyPage;
        mCurrentPage = currentPage;
        mHasNextPage = hasNextPage;
        mBeginIndex = beginIndex;
    }

    /**
     * 构造函数，默认
     */
    public PageModel() {
    }

    public int getEveryPage() {
        return mEveryPage;
    }

    public void setEveryPage(int everyPage) {
        mEveryPage = everyPage;
    }

    public int getCurrentPage() {
        return mCurrentPage;
    }

    public void setCurrentPage(int currentPage) {
        mCurrentPage = currentPage;
    }

    public boolean isHasNextPage() {
        return mHasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        mHasNextPage = hasNextPage;
    }

    public int getBeginIndex() {
        return mBeginIndex;
    }

    public void setBeginIndex(int beginIndex) {
        mBeginIndex = beginIndex;
    }
}
